{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
<script language="JavaScript" type="text/javascript" src="{res file=js/lan.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=DatePicker/WdatePicker.js}"></script>
<link href="template/style/css/style.css" type="text/css" rel="stylesheet" />
	<div class="tab_info" style="width: 1000px">
		<table cellspacing="0" cellpadding="0" id="tab-color2" class="tab-display">
			<tbody>
				<tr>
					<td colspan="16"><h3>对账汇总</h3></td>
				</tr>
				<tr>
					<th colspan="2">工厂入仓日期:</th>
					<td colspan="14" align="left"><input value="{$release_date_start|date}" readonly="readonly" />至<input value="{$release_date_end|date}" readonly="readonly" /></td>
				</tr>
				<tr>
					<th width="3%">序号</th>
					<th width="6%">工厂</th>
					<th width="9%">工厂入仓日期</th>
					<th width="6%">订单号</th>
					<th width="5%">款号</th>
					<th width="7%">品牌</th>
					<th width="5%">跟单</th>
					<th width="5%">工厂价格</th>
					<th width="5%">客人价格</th>
					<th width="7%">客人应付金额</th>
					<th width="7%">实际出货件数</th>
                    <th width="5%">办公费用</th>
                    <th width="6%">总办公费用</th>
                    <th width="5%">折扣金额</th>
                    <th width="7%">实际支付金额</th>
                    <th width="5%">状态</th>
				</tr>
				<!--{foreach from=$order_list item=order name=o}-->
				<tr>
					<td>{$smarty.foreach.o.iteration}</td>
					<td>{$order.factory_name}</td>
                    <td>{$order.release_date|date}</td>
					<td><a href="{url app=order&act=view&id=$order.order_id}"  style="color:blue">{$order.order_sn|default:-}</a></td>
					<td>{$order.style_sn}</td>
					<td>{$order.brand_name}</td>
					<td>{$order.merchandiser}</td>
					<td>{$order.factory_price}</td>
					<td>{$order.customer_price}</td>
					<td>{$order.custome_price_amount|default:0}</td>
					<td>{$order.ship_count}</td>
                    <td>{$order.work_amount}</td>
					<td>{$order.all_work_amount}</td>
                    <td>{$order.goods_discount}</td>
					<td>{$order.ship_amount}</td>
                    <td>{$lang.order_status.$order.status}</td>
				</tr>
				<!--{/foreach}-->
				<tr>
					<td>合计</td>
					<td colspan="11">&nbsp;</td>
					<td>{$total.all_amount|price}</td>
					<td>&nbsp;</td>
					<td>{$total.fact_amount|price}</td>
					<td>&nbsp;</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<script language="JavaScript" type="text/javascript" src="{res file=js/tab_color.js}"></script> 
<script language="JavaScript">
$(function(){
	print();
});
<!--{if $search}-->
$(function(){
var get_para={$get_para};
$.each(get_para,function(k,v){
if($('#'+k)){
$('#'+k).attr('value', v);
}
})
});
<!--{/if}-->
</script>
</body>
{$async_sendmail}
</html>
